<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>若梦TV，全网品质好单采集平台</title>
	<meta name="keywords" content="若梦、若梦TV、若梦金冠联盟、采集站、淘客、淘宝客、淘客工具、淘客软件、淘客联盟
">
	<meta name="description" content="若梦TV采集站ruomengtv.com，是若梦金冠联盟优质好单采集平台；专注优质商品，严格把控品质，超高转化，提高收益，为淘客提供最好的商品精选采集平台！">
	<link rel="icon" href="favicon.ico">
	<link rel="stylesheet" type="text/css" href="../../lib/css/animate.min.css">
	<link rel="stylesheet" type="text/css" href="../../layui/css/layer.min.css">
	<link rel="stylesheet" type="text/css" href="../../lib/css/jquery.page.min.css">
	<link rel="stylesheet" type="text/css" href="../../lib/css/fakeloader.css">
	<link rel="stylesheet" type="text/css" href="../../lib/css/reset.css">
	<link rel="stylesheet" type="text/css" href="../../css/comm.css">
	<link rel="stylesheet" type="text/css" href="../../css/style.css">
	<link rel="stylesheet" type="text/css" href="../../iconfont/iconfont.css">
	<style type="text/css">				
		.goods-wrap {min-height: 1000px;background: #fff;}
		.item0 {width: 1142px;height: 184px;padding: 30px;background: #fff;border-bottom: 1px solid #eee;}
		.item0 .item-part1 {width: 184px;height: 184px;text-align: center;line-height: 100%;margin-right: 28px;position: relative;}
		.item0 .item-part1 img{max-width: 184px;max-height: 184px;vertical-align: middle;}
		.item0 .item-part1 .is-over {width: 100%;height: 100%;background: rgba(0,0,0,.7);position: absolute;top: 0;left: 0;z-index: 3}		
		.item0 .item-part1 .is-over .is-over-inner {position: absolute; top: 50%; left: 50%; margin-top: -36px; margin-left: -36px; width: 72px; height: 72px; border-radius: 36px; background: rgba(254,93,100,.7); font: normal normal 14px/14px "微软雅黑",sans-serif; color: #fff; text-align: center; line-height: 72px;}
		.item0 .item-part2 {width: 206px;}
		.item0 .item-part2 h1{margin-top:0;}
		.item0 .item-part2 h1 ,.item .item-part2 h1 a{font: normal 500 14px/14px "微软雅黑";margin-bottom: 15px;height: 17px;color: #666;}
		.item0 .item-part2 h1 img{vertical-align: bottom;margin-right: 8px;}
		.item0 .item-part2 h2 {height: 14px;font: normal 500 14px/14px "微软雅黑";margin-bottom: 23px;}
		.item0 .item-part2 h2 .left ,.item .item-part2 h2 .right {color: #b2b2b2}
		.item0 .item-part2 h3 {height: 20px;margin-bottom: 10px;}
		.item0 .item-part2 h3 .coupon {width: 98px;height: 18px;border:1px solid #03a9f4; }
		.item0 .item-part2 h3 .coupon .left {background: #03a9f4;color: #fff;font: normal 500 14px/18px "微软雅黑";text-align: center;width: 24px;}
		.item0 .item-part2 h3 .coupon .right {color: #03a9f4;font: normal 500 14px/18px "微软雅黑";text-align: center;width: 72px;}
		.item0 .item-part2 h4 {height: 14px;margin-bottom: 10px;text-align: left;}
		.item0 .item-part2 h4 {font: normal 500 14px/14px "微软雅黑";color: #b2b2b2}
		.item0 .item-part2 h5 {height: 16px;margin-bottom: 15px;font: font: normal 500 14px/16px "微软雅黑";color: #666}
		.item0 .item-part2 h5 span {display: inline-block;background: #03a9f4;color: #fff;width: 34px;height: 16px;margin-left: 10px;text-align: center;border-radius: 2.5px;line-height: 16px}
		.item0 .item-part2 .after-coupon-price {width: 100%;height: 30px;color: #fff;text-align: center;font: normal 16px/30px "微软雅黑";background-image: url(../../img/button_bk.png);border-radius: 50px;}

		.item0 .item-part3 {text-align: center;width: 568px;padding-top: 69px}
		.item0 .item-part3 h1 {font: normal 500 14px/14px "微软雅黑";color: #03a9f4;margin-bottom: 20px;}
		.item0 .item-part3 h2 {font: normal 500 12px/12px "微软雅黑";color: #c9c5cf;}
		.item0 .item-part4 {width: 90px;margin-right: 66px;}
		.item0 .item-part4 .copy-btn {width: 90px;height: 30px;background: #03a9f4;font: normal 500 14px/30px "微软雅黑";color: #fff;text-align: center;cursor: pointer;margin-top: 77px;}

		.page-wrap{margin:54px auto 0px;}

 	</style>
</head>
<body>
	<!-- 头部 -->
	<header class="header">
		<div class="head">
			<div class="head-left left">
				<a href="index.html" title="若梦TV--首页"><img src="../../img/logo.png" alt=""></a>
				<div class="experience">
					<div class="left">体验</div>
					<div class="right"><a href="http://tool.ruomengtv.com" title="天天赚发单助手" target="_blank">天天赚发单助手</a></div>
				</div>
			</div>
			<!--搜索-->
			<div class="left search-wrap active">
				<div class="left">
					<input type="text" placeholder="输入关键词或商品链接">
					<!--搜索历史-->
					<div class="searchHistory">
						<!-- <div class="historyItem">1</div>
						<div class="historyItem">2</div>
						<div class="historyItem">什么事没事没事</div>
						<div class="historyItem">耐克</div>
						<div class="historyItem">鞋子啊</div> -->
					</div>
					<!--搜索历史结束-->
				</div>
				<div class="right">搜索</div>
			</div>
			<!--搜索结束-->
			<div class="head-right right">
				<div class="left login btn" onclick="location.href='../login/login.html';">登录</div>
				<div class="right register btn" onclick="location.href='../login/regsiter.html';">注册</div>
			</div>
			<!--登录后显示区域-->
			<div class="head-right2 right hide">
				<img class="left releaseIcon" src="../../img/head_icon1.png" title="发布" alt="">
				<img class="left informIcon" src="../../img/head_icon2.png" title="未读消息" alt="">
				<div class="left informNum" title="未读消息">0</div>
				<div class="left headOuter" title="个人中心">
					<img class="headPic" src="../../img/default_head.png" alt="">
				</div>
			</div>
			<!--登录后显示区域结束-->
		</div>
	</header>

	<!--主体内容1-->
	<div class="wrap">
		<div class="personalMsg">
			<div class="left leftArea">
				<div class="btn checkManageBtn" onclick="location.href='adminPersonalCenter.html';">审核管理</div>
				<div class="btn active" onclick="location.href='adminShelfManage_synthetical.html';">上下架管理</div>
				<div class="btn" onclick="location.href='adminUserManage.html';">用户管理</div>
			</div>
			<div class="left middleArea">
				<div class="headOuter">
					<img class="icon" src="../../img/default_head.png" alt="">
				</div>
				<div class="nickName"><!-- 管理员昵称 --></div>
				<div class="sign"><!-- 这是一个个性签名哈哈哈哈哈 --></div>
			</div>
			<div class="right rightArea">
				<div class="nums">
					<div class="waitcheck">
						<div class="num checkNum">0</div>
						<div class="text checkText">今日待审核</div>
					</div>
				</div>
				<div class="btn modifyBtn" onclick="popShow('.modifiMsgPop');">修改资料</div>
				<div class="btn modifyPhoneBtn" onclick="popShow('.modifiPhonePop');">更改手机号</div>
				<div class="btn signOutBtn">退出</div>
			</div>
		</div>
	</div>
	<!--主体内容1结束-->

	<!-- 导航条 -->
	<div class="banner_dh">
		<div style="margin:0 auto;width:1180px;">
			<div class="dh_word"><a href="adminShelfManage_synthetical.html"><p>综合</p></a></div>
			<div class="dh_word"><a href="adminShelfManage_popular_rank.html"><p>人气排行</p></a></div>
			<div class="dh_word"><a href="adminShelfManage_new.html"><p>实时上新</p></a></div>
			<div class="dh_word"><a href="adminShelfManage_sale_rank.html"><p>销量榜</p></a></div>
			<!-- <div class="dh_word"><a href="adminShelfManage_coupon_rank.html"><p>领券榜</p></a></div> -->
			<div class="dh_word"><a href="adminShelfManage_quality_goods.html"><p>品质好货</p></a></div>
			<div class="dh_word"><a href="adminShelfManage_poly_birds.html"><p>聚+淘</p></a></div>
			<!-- <div class="dh_word_selected"><a href="adminShelfManage_all.html"><p>热门采集群</p></a></div> -->
			<div class="dh_word"><a href="adminShelfManage_baokuan.html"><p>爆款单</p></a></div>
		</div>
	</div>
	<!--导航条结束-->

	<!--主体内容2-->
	<div class="wrap">
		
		<div class="group">
			<div class="left group-t">热群</div>
			<div class="left group-list"><ul></ul></div>
			<div class="clearfix"></div>
		</div>
		<div class="goods-sorts">
			<ul>
				<li class="active" sort='0'>最新</li>
				<li sort='1'>价格</li>
				<li sort='2'>销量</li>
				<li sort='3'>佣金</li>
				<li sort='4'>领券</li>
				<li sort='5'>优惠力度</li>
			</ul>
			<div class="clearfix"></div>
		</div>
		

		<!--商品展示区域-->
		<div class="goods-wrap">
			<!--<div class="item">
				<div class="item-img-wrap">
					<div class="item-logo">
						TOP <br />
						1
					</div>
					<div class="item-img">
						<a href=" " title=" + e.goodsName + " target="_blank"><img class="scrollLoading" src=https://img.alicdn.com/imgextra/i4/1072286858/TB2xuvQt3NlpuFjy0FfXXX3CpXa_!!1072286858.png data-original=" + e.img + "></a>
					</div>
					<div class="copy-btn" >
						复制文案
					</div>
				</div>
				<h1> <a href="" title=" + e.goodsName + " target="_blank"> goodsName</a></h1>
				<div class="coupon">
					<div class="left">
						<h2>￥<span style="color:#03a9f4">100</span></h2>
						<h3>券后价</h3>
					</div>
					<div class="left">
						<h2>￥<span>20</span></h2>
						<h3>优惠券</h3>
					</div>
					<div class="left last">
						<h2>80.00 <span>%</span></h2>
						<h3>定向</h3>
					</div>
					<div class="clearfix"></div>
				</div>
				<div class="coupon-btn btn">
					<a href="  " target="_blank"> 哈哈哈 </a>
				</div>
				<h4> 2017-01-02 11:20 &nbsp;&nbsp;&nbsp;发布</h4>
				<div class="item-more">
					<div class="left">
						销量<span> 111111</span>
					</div>
					<div class="right">
						goodsType
						<img src="" alt="">
					</div>
					<div class="clearfix"></div>
				</div>
			</div>-->
		</div>
		<!--商品展示区域结束-->
		<!-- 分页 -->
		<div class="page-wrap hide">
			<div id="page"></div>
		</div>
		<!--分页结束-->
	</div>
	<!--主体内容2结束-->

	<!-- 加载层 -->
	<div class="fakeloader"></div>
	<!-- 复制文案 -->
	<div class="copy-data"></div>
	<!-- 返回顶部 -->
	<div class="scrollTop">
		<div class="scrollTop-top">
		</div>
		<div class="scrollTop-bottom">
			返回顶部
		</div>
	</div>

	<!--遮罩层-->
	<div class="grey hide" onclick="popHide();"></div>
	<!--遮罩层结束-->

	<!--修改资料弹窗-->
	<div class="popUp modifiMsgPop hide">
		<div class="titleArea gradient">
			<div class="spaceBox"><!--为防止垂直间距合并--></div>
			<div class="title">修改资料</div>
		</div>
		<div class="contentArea">
			<div class="outer headOuter">
				<label>头像</label>
				<div class="uploadOuter">
					<img src="../../img/head_upload.png" alt="">
					<input type="file" class="addimgIpt" name="file" accept="image/gif,image/jpeg,image/png"/>
				</div>
			</div>
			<div class="outer">
				<label for="nickname">昵称</label>
				<input id="nickname" type="text" maxlength=10 placeholder="请填写昵称">
			</div>
			<div class="outer">
				<label for="sign">个性签名</label>
				<textarea name="" id="sign" maxlength=32 placeholder="请填写个性签名"></textarea>
			</div>
			<div class="outer">
				<label for="phone">手机号</label>
				<input id="phone" type="tel" placeholder="请填写手机号">
			</div>
		</div>
		<div class="btnArea">
			<div class="btn gradient">确定</div>
		</div>
	</div>
	<!--修改资料弹窗结束-->
	<!--修改手机号弹窗-->
	<div class="popUp modifiPhonePop hide">
		<div class="titleArea gradient">
			<div class="spaceBox"><!--为防止垂直间距合并--></div>
			<div class="title">修改手机号</div>
		</div>
		<div class="contentArea">
			<div class="outer">
				<span class="oldPhoneOuter">已绑定手机号：</span> <span class="oldPhone"><!-- 1356433290 --></span>
			</div>
			<div class="outer">
				<label for="newPhone">新手机号</label>
				<input id="newPhone" type="tel" placeholder="新手机号">
			</div>
			<div class="outer">
				<label for="imgCode">图片验证码</label>
				<input id="imgCode" type="text" maxlength=4 placeholder="图片验证码">
				<div class="imgVerifiCode"><img src="/user/checkCode" alt=""></div>
			</div>
			<div class="outer">
				<label for="authCode">验证码</label>
				<input id="authCode" type="text" maxlength=6 placeholder="短信验证码">
				<div class="send-code">获取验证码</div>
			</div>
		</div>
		<div class="btnArea">
			<div class="btn gradient">确定</div>
		</div>
	</div>
	<!--修改手机号弹窗结束-->

</body>

<script type="text/javascript" charset="UTF-8" src="../../lib/js/jquery.min.js"></script>
<script type="text/javascript" charset="UTF-8" src="../../lib/js/jquery.page.min.js"></script>
<script type="text/javascript" charset="UTF-8" src="../../lib/js/clipboard.min.js"></script>
<script type="text/javascript" charset="UTF-8" src="../../layui/lay/dest/layui.all.js"></script>
<script type="text/javascript" charset="UTF-8" src="../../layui/layer.js"></script>
<script type="text/javascript" charset="UTF-8" src="../../lib/js/fakeloader.min.js"></script>
<script type="text/javascript" charset="UTF-8" src="../../lib/js/jquery.lazyload.min.js"></script>
<script type="text/javascript" charset="UTF-8" src="../../js/main.js"></script>
<script type="text/javascript" charset="UTF-8" src="../../lib/js/jquery.hDialog.min.js"></script>
<script type="text/javascript" charset="UTF-8" src="../../js/send_code.js"></script>
<script>
$(function(){
	//加载个人信息
	getUserMsg(2);

	window.p = 1;
	window.flag = true;
	window.info = {
		pageSize : p,
		goodSort : 0
	};
	get_group_list();

	$(document).on('click','.group-list li',function(){ //  切换群
		$('.group-list li').removeClass('active');
		$(this).addClass('active');
		info.pageSize = 1;
		if (!isNull($(this).attr('id'))) {
			info.groupIds = $(this).attr('id');
		}else{
			delete info.groupIds;
		}
		get_goods_list_all (info);
	});

	$(document).on('click','.goods-sorts li',function(){ // 切换排序方式
		$('.goods-sorts li').removeClass('active');
		$(this).addClass('active');
		info.pageSize = 1;
		if (!isNull($(this).attr('sort'))) {
			info.goodSort = $(this).attr('sort');
		}
		get_goods_list_all (info);
	})

});

function get_group_list () {
	$.ajax({
		url:'/gmk/gatherShow/groupList',
		type:'post',
		success:function(a){
			if (a.status == 'SUCESS') {
				if (!isNull(a.data.counts)) {
					//$('.goods-total span').html(a.data.counts)
				}
				if (!isNull(a.data.groupList)) {
					if (a.data.groupList.length > 0) {
						var s = '<li>全部</li>'
						$(a.data.groupList).each(function(i,e){
							if (isNull(e.name)) {
								return true;
							}
							s += '<li id="'+e.id+'">'+e.name+'</li>';
						});
						$('.group-list ul').html(s);
						if ($('.group-list').height() > 52) {
							$('.group-list li').css({'height':'30px','font':'normal 14px/30px "微软雅黑"'});
							$('.group-t').css({'height':$('.group-list').height()+'px','font':'normal 18px/'+$('.group-list').height()+'px "微软雅黑"'})
						}
						$('.group-list ul li').eq(0).addClass('active');
						if (!isNull($('.group-list ul li').eq(0).attr('id'))) {
							info.groupIds = $('.group-list ul li').eq(0).attr('id');
						}
						get_goods_list_all (info);
					}else{
						$.dialog('alert','提示','群列表为空',1500)
					}
				}else{
					$.dialog('alert','提示','群列表为空',1500)
				}
			}else{
				$.dialog('alert','错误',a.moreInfo,1500)
			}
		},
		error:function(){
			$.dialog('alert','错误','服务器走丢了',1500)
		}
	})
}

function get_goods_list_all (info) {

	$.ajax({
		url:'/gmk/gatherShow//listShow',
		type:'post',
		data:info,
		beforeSend:function(){
			loading("rgba(0,0,0,0.66)", "spinner1");
		},
		complete:function(){
			loading_success();
		},
		success:function(a){
			if (a.status == 'SUCESS') {

				if (!isNull(a.data.list)) {
					if (a.data.list.length > 0) {
						var s = ''
						$(a.data.list).each(function(i,e){
							if (e.shopType == 2 ) {  //   天猫
								var b = '../../img/tianmao.png';
								var h = "https://detail.tmall.com/item.htm?id=" + e.itemId;
							}else{  // 淘宝
								var b = '../../img/taobao.png';
								var h = "https://item.taobao.com/item.htm?id=" + e.itemId;
							}
							var k = "http://shop.m.taobao.com/shop/coupon.htm?seller_id=" + e.sellerId + "&activity_id=" + e.couponId +
											"&v=0";
							if (e.commissionType == 2) {
								var t = '定向'
							}else if (e.commissionType == 3){
								var t = '鹊桥'
							}else{
								var t = '通用'
							}
							if (e.goodsName.length > 12) {
								e.goodsName = e.goodsName.substr(0,12)+'..'
							}
							if (isNull(e.shopName)) {
								e.shopName = '店铺名正在统计中'
							}
							if (e.shopName.length > 8) {
								e.shopName = e.shopName.substr(0,8)+'..'
							}
							if (isNull(e.nowNumbers) || isNull(e.surplusCoupon)) {
								var l = '<a href="'+k+'">该商品领券数据正在统计中</a>'
							}else{
								var l = '已领券&nbsp;&nbsp;'+e.nowNumbers+'/'+e.surplusCoupon+''
							}
							if (isNull(e.voucherPrice)) {
								var x = '该商品券后价正在统计中'
							}else{
								var x = '券后价：'+e.voucherPrice+'元'
							}
							if (e.state == 0) { // 正常
								var over = '';
							}else{ // 过期
								/* var over = '<div class="is-over"><div class="is-over-inner">已抢完</div></div>'; */
								var over = '';
							}

							s += '<div class="item0">' +
									 '<div class="left item-part1">' +
									 over +
									 '<a href="'+h+'" title="'+e.goodsName+'" target="_blank"><img class="scrollLoading" src=\'https://img.alicdn.com/imgextra/i4/1072286858/TB2xuvQt3NlpuFjy0FfXXX3CpXa_!!1072286858.png\' data-original="' + e.img + '"></a>' +
									 '</div>' +
									 '<div class="left item-part2">' +
									 '<h1><img src="'+b+'"><a href="'+h+'" title="'+e.goodsName+'" target="_blank">'+e.goodsName+'</a></h1>' +
									 '<h2>' +
									 '<div class="left">'+e.shopName+'</div>' +
									 '<div class="right">月销'+e.effectSales+'</div>' +
									 '</h2>' +
									 '<h3><div class="coupon"><a href="'+k+'" title="优惠券：'+e.goodsName+'" target="_blank"><div class="left">券</div><div class="right">'+e.count+'元</div></a></div></h3>' +
									 '<a href="'+k+'"><h4 style="color:#06a9f4;" ></a>'+l+'</h4>' +
									 '<h5>佣金&nbsp;&nbsp;'+e.commissionProportion+'%<span>'+t+'</span></h5>' +
									 '<div class="after-coupon-price">' +
									 x +
									 '</div>' +
									 '</div>' +
									 '<div class="left item-part3">' +
									 '<h1>来源：'+e.groupName+'</h1>' +
									 '<h2>'+e.createTime+' 发布</h2>' +
									 '</div>' +
									 '<div class="left item-part4">' +
									 '<div class="copy-btn" copy-data=\'<img src="'+e.img2 +'" >'+e.message+'\' data-clipboard-target=".copy-data">复制文案</div>' +
									 '</div>' +
									 '</div>'
						});
						s += '<div class="clearfix"></div>'
						$('.goods-wrap').html(s);
						imgLazyLoad();
						copy_int();
						if (flag) {
							$("#page").Page({
								totalPages: a.data.pageCount,//分页总数
								liNums: 7,//分页的数字按钮数(建议取奇数)
								current:info.pageSize, //当前页
								activeClass: 'activP', //active 类样式定义
								callBack : function(page){
									$('body,html').animate({scrollTop: '250px'},500);
									flag = false;
									info.pageSize = page;
									get_goods_list_all (info);
								}
							});
						}
					}else{
						$.dialog('alert','提示','商品列表为空',1500)
					}
				}else{
					$.dialog('alert','提示','商品列表为空',1500)
				}
			}else{
				$.dialog('alert','错误',a.moreInfo,1500)
			}
		},
		error:function(){
			$.dialog('alert','错误','服务器走丢了',1500)
		}
	})
}

</script>
</html>